package cn.zhz.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Tool {
    public static Date strToDate(String dateStr,String pattern) throws Exception{
        SimpleDateFormat sdf = new SimpleDateFormat(pattern);
        return sdf.parse(dateStr);
    }
}
